<?php
/*
 * Created on Nov 12, 2007
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 
require_once(dirname(__FILE__). DIRECTORY_SEPARATOR . "includes.php");
 

function __autoload($class_name) {


     if($exists = !class_exists($class_name) && file_exists($class = CLASS_PATH.$class_name.'.class.php')){
        require_once $class;
        }
   	 elseif(!$exists) {
        eval('class '.$class_name.' extends Exception {}');
        throw new $class_name('[__autoload] this file doesn\'t exists: '.$class);
   	 }
}


global $CFG;

	try {	 
	 
	 $smarty = TemplateController::CreateDefaultSmartyObject();
	 
	 //Set the main navigation menu
	 TemplateController::MainNavigationMenu($smarty, "Homepage");
	 
	 $smarty->display('index.tpl');
	 
	}
	catch(Undefined $e) {
	    echo $e->getMessage();
	}
	catch(Exception $e) {
	    echo $e->getMessage();
	}



?>
